Skip to content

Conversation

@martelogan
Copy link
Member

@martelogan martelogan commented Jun 10, 2024

The main change in this PR is the fix in 3ba0841 to prevent b32 from being nil in the absence of changes when modified by tr! and upcase!. This will fix intermittent failures which we sometimes encounter in integrating the forked gem to caller code.

While I was at it, I happened to notice that there was also some unresolved PR feedback on abachman#10 so I figured I may as well solve those also - per 7d82497 .

@martelogan martelogan changed the title Hotfix ULID optimizations Hotfix and cleanup ULID optimizations Jun 10, 2024
@martelogan martelogan self-assigned this Jun 10, 2024
Comment on lines 27 to 28
B32_CROCKFORD_FRAGMENT = "JKMNPQRSTVWXYZ"
B32_RCF4648_FRAGMENT = "ijklmnopqrstuv" # downcase becase .to_s(32) is always lowercase
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should be handled as frozen by

# frozen_string_literal: true

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yea, I just wanted to make it visually comparable. this is probably better

@martelogan martelogan force-pushed the hotfix-ulid-optimizations branch from f02d739 to de91761 Compare June 10, 2024 21:05
@martelogan martelogan merged commit d3f3156 into master Jun 10, 2024
@martelogan martelogan added the #gsd:40924 Checkout Flash Cookies Migration: https://vault.shopify.io/gsd/projects/40924 label Aug 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

#gsd:40924 Checkout Flash Cookies Migration: https://vault.shopify.io/gsd/projects/40924

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants